package com.bsj.pay.dao;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.bsj.pay.model.AccountBean;

@Mapper
public interface AccountDao extends BaseDao<AccountBean>{
	
	int addBuyCount(Long id);
	
	int addBindFailCount(Long id);
	
	int removeAll(String operator);
	
	int resetBusy();
	
	int resetBindFailCount();
	
	int batchResetBindFailCount(String operator);
	
	int resetBindFailCountById(Long id);
	
	List<AccountBean> getNeedUpdateProxyList(@Param("query_time_out")int query_time_out);
	
	List<AccountBean> getCanDispatchOrderList();
	
	AccountBean getOneCanDispatchOrder();
	
	AccountBean getOneCanDispatchOrderByTime();
	
	AccountBean getOneCanQuery(String operator);
	
	AccountBean getOneCanDispatchOrderByOperatorAndTime(String operator);
	
	AccountBean getOneCanDispatchOrderByAuthType(@Param("operator")String operator,@Param("authStatus")Integer authStatus);
	
	List<AccountBean> adminQueryList(AccountBean t);
	
	List<AccountBean> getNeedCheckOnlieList();
	
	int addProxyFailTimes(Long id);
	
	int resetBuyCount();
}
